package com.example.knowledgeget1.GraphDBCommon.Entity;

import com.example.knowledgeget1.GraphDBCommon.Entity.Node;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Relationship;

import lombok.Data;

@Data
public class PreRelationship {

    @Id
    private Long id;

    @Relationship(type = "HAS_PREKNOWLEDGE", direction = Relationship.Direction.OUTGOING)
    private Node currentNode;

    @Relationship(type = "HAS_PREKNOWLEDGE", direction = Relationship.Direction.INCOMING)
    private Node preKnowledgeNode;

    // 你可以添加其他属性，比如关系的权重、描述等
}